package com.jamin;

import com.jamin.custom_view_topbar_path.CustomLauncherActivity;
import com.jamin.flinggallery.FlingGalleryActivity;
import com.jamin.iphoneex.IphoneExpandableListActivity;
import com.jamin.pullrefresh.ListPullLauncherActivity;
import com.jamin.pullrefresh.PullDownRefreshTestActivity;
import com.jamin.pullrefresh.PullExActivity;
import com.jamin.pullrefresh.PullUpRefreshTestActivity;
import com.jamin.tab.TabActivityGroup;
import com.jamin.tab.ViewPagerActivity;
import com.jamin.ucmenu.TabMenuActivity;

import android.app.LauncherActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ArrayAdapter;

public class AndroidBaseSDKActivity extends LauncherActivity{
	/** Called when the activity is first created. */

	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		ArrayAdapter<String> adapter = new ArrayAdapter<String>(this , android.R.layout.simple_list_item_1 , names);
		setListAdapter(adapter);
	}


	
	@Override
	protected Intent intentForPosition(int position) {
		return new Intent(AndroidBaseSDKActivity.this , clazzs[position]);
	}

	
	Class<?> [] clazzs = { 
			ListPullLauncherActivity.class , 
			FlingGalleryActivity.class , 
			ViewPagerActivity.class,
			TabActivityGroup.class,
			TabMenuActivity.class,
			IphoneExpandableListActivity.class,
			CustomLauncherActivity.class
	};

	
	String [] names = {
			"拉动更新",
			"左右翻转画廊FlingGallery",
			"左右滑动的TAB页",
			"ActivityGroup实现TAB页",
			"仿UCWEB的菜单",
			"仿Iphone展开菜单吸附效果",
			"封装VIEW(TopBar,Path)"
	};

}